﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web.SystemConfig.Services;
using Web.SystemConfig.DataAccess;
using DreamBuilder.Common;

namespace Web.SystemConfig.Business
{
    public class BUSCodeTable : BusinessBase, ICodeTable
    {

        DALCodeTable dal;

        public BUSCodeTable()
        {
            dal = new DALCodeTable();
        }

        #region ICodeTable 成员
        /// <summary>
        /// 通过Code_ID，Code_Type获取CodeTableID
        /// </summary>
        /// <returns></returns>
        public string GetCodeTableID(string Code_ID, string Code_Type)
        {
            return dal.GetCodeTableID(Code_ID, Code_Type);
        }

        public System.Data.DataSet GetCodeTableDataByType(string Code_Type)
        {
            return dal.GetCodeTableDataByType(Code_Type);
        }
         /// <summary>
        ///获取系统核算币
        /// </summary>
        /// <returns></returns>
        public string GetAccountingCurrencyID()
        {
            return dal.GetAccountingCurrencyID();
        }
        #endregion

        #region add by 刘英男 20111102 码表描述
        /// <summary>
        /// 根据主键获取码表描述
        /// </summary>
        /// <param name="pkValue">主键</param>
        /// <returns>pkName</returns>
        public String GetpkNameByCodepkValue(string pkValue)
        {
            string pkName =dal.GetpkNameByCodepkValueInfo(pkValue);
            return pkName;
        }
        #endregion
    }
}
